<?php
use wepay\join\demo\common\ConfigUtil;
?>
        <!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>订单支付页面</title>
    <meta name="viewport" content="width=device-width,initial-scale=1.0, user-scalable=no"/>
    <link rel="stylesheet" href="../static/css/base.css"/>
</head>
<body  onload="autosubmit()">
<?php
//print_r($_SESSION['tradeInfo']);
//die();
?>

<form method="post" action="https://plus.jdpay.com/nPay.htm" id="payForm">
    <!--交易信息 start-->


    <?php if($_SESSION ['tradeInfo']!=null){?>
    <input type="hidden" name="version" value="<?php echo $_SESSION ['tradeInfo']['version'];?>"/>
    <input type="hidden" name="token" value="<?php echo $_SESSION ['tradeInfo']['token'];?>"/>
    <input type="hidden" name="merchantSign" value="<?php echo $_SESSION ['tradeInfo']['merchantSign'];?>"/>
    <input type="hidden" name="merchantNum" value="<?php echo $_SESSION ['tradeInfo']['merchantNum'];?>"/>
    <input type="hidden" name="merchantRemark" value="<?php echo $_SESSION ['tradeInfo']['merchantRemark'];?>"/>
    <input type="hidden" name="tradeNum" value="<?php echo $_SESSION ['tradeInfo']['tradeNum'];?>"/>
    <input type="hidden" name="tradeName" value="<?php echo $_SESSION ['tradeInfo']['tradeName'];?>"/>
    <input type="hidden" name="tradeDescription" value="<?php echo $_SESSION ['tradeInfo']['tradeDescription'];?>"/>
    <input type="hidden" name="tradeTime" value="<?php echo $_SESSION ['tradeInfo']['tradeTime'];?>"/>
    <input type="hidden" name="tradeAmount" value="<?php echo $_SESSION ['tradeInfo']['tradeAmount'];?>"/>
    <input type="hidden" name="currency" value="<?php echo $_SESSION ['tradeInfo']['currency'];?>"/>
    <input type="hidden" name="notifyUrl" value="<?php echo $_SESSION ['tradeInfo']['notifyUrl'];?>"/>
    <input type="hidden" name="successCallbackUrl" value="<?php echo $_SESSION ['tradeInfo']['successCallbackUrl'];?>"/>
    <input type="hidden" name="ip" value="<?php echo $_SESSION ['tradeInfo']['ip'];?>"/>
    <input type="hidden" name="specifyInfoJson" value='<?php echo $_SESSION ['tradeInfo']['specifyInfoJson'];?>'/>
    <?php }?>
</form>
<script src="../static/js/zepto.js"></script>
<script>
    function autosubmit(){
        document.getElementById("payForm").submit();
    }
</script>
</body>
</html>
